package com.hxzy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxzy.common.dto.ChangeStatusDTO;
import com.hxzy.dto.EmployeeSearchDTO;
import com.hxzy.entity.Employee;

import java.util.List;

/**
 * 员工业务逻辑
 * @author Administrator
 */
public interface EmployeeService extends IService<Employee> {

    /**
     * 分页查询
     * @param dto
     * @return
     */
    List<Employee> search(EmployeeSearchDTO dto);

    /**
     * 禁用账户信息
     * @param ids
     * @return
     */
    int removeByIds(Long[] ids);

    /**
     * 更改账户状态
     * @param changeStatusDTO
     * @return
     */
    int updateStatus( ChangeStatusDTO changeStatusDTO);

    Employee selectByPrimaryKey(Long id);
}
